package com.example.module22.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "example")
public class AtguiguConfig {

    private String schoolName;
    private List<String> subjects;
    private Integer showAge;

    public AtguiguConfig() {
    }
    public AtguiguConfig(String schoolName, List<String> subjects, Integer showAge) {
        this.schoolName = schoolName;
        this.subjects = subjects;
        this.showAge = showAge;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public List<String> getSubjects() {
        return subjects;
    }

    public void setSubjects(List<String> subjects) {
        this.subjects = subjects;
    }

    public Integer getShowAge() {
        return showAge;
    }

    public void setShowAge(Integer showAge) {
        this.showAge = showAge;
    }

    @Override
    public String toString() {
        return "AtguiguConfig{" +
                "schoolName='" + schoolName + '\'' +
                ", subjects=" + subjects +
                ", showAge=" + showAge +
                '}';
    }
}
